package com.deplume.ssm.service.impl.admin.home;

import com.deplume.ssm.mapper.home.ICompanyMapper;
import com.deplume.ssm.pojo.admin.DeliveryActivity;
import com.deplume.ssm.pojo.admin.Job;
import com.deplume.ssm.service.inface.admin.home.ICompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by blake on 2016/8/17.
 */
@Service("companyService")
public class CompanyServiceImpl implements ICompanyService
{

    @Autowired
    ICompanyMapper userRelativeMapper;

    @Override
    public int returnSalaryId(String string) throws Exception
    {
        return userRelativeMapper.returnSalaryId(string);
    }
    @Override
    public int returnDegreeId(String string) throws Exception
    {
        return userRelativeMapper.returnDegreeId(string);
    }
    @Override
    public int returnCityId(String string) throws Exception
    {
        return userRelativeMapper.returnCityId(string);
    }
    @Override
    public int returnWorkyearId(String string) throws Exception
    {
        return userRelativeMapper.returnWorkyearId(string);
    }
    @Override
    public int returnJobPropertyId(String string) throws Exception
    {
        return userRelativeMapper.returnJobPropertyId(string);
    }
    @Override
    public String returnSalaryById(int id) throws Exception
    {
        return userRelativeMapper.returnSalaryById(id);
    }
    @Override
    public String returnDegreeById(int id) throws Exception
    {
        return userRelativeMapper.returnDegreeById(id);
    }
    @Override
    public String returnCityById(int id) throws Exception
    {
        return userRelativeMapper.returnCityById(id);
    }
    @Override
    public String returnWorkyearById(int id) throws Exception
    {
        return userRelativeMapper.returnWorkyearById(id);
    }
    @Override
    public String returnJobPropertyById(int id) throws Exception
    {
        return userRelativeMapper.returnJobPropertyById(id);
    }
    @Override
    public int insertJob(Job job) throws Exception
    {
        return userRelativeMapper.insertJob(job);
    }
    @Override
    public int returnJobType1Id(String string) throws Exception
    {
        return userRelativeMapper.returnJobType1Id(string);
    }
    @Override
    public int returnJobType2Id(String string) throws Exception
    {
        return userRelativeMapper.returnJobType2Id(string);
    }
    @Override
    public int returnJobType3Id(String string) throws Exception
    {
        return userRelativeMapper.returnJobType3Id(string);
    }
    @Override
    public List<Job> findJob1Status(int id) throws Exception
    {

        return userRelativeMapper.findJob1Status(id);
    }
    @Override
    public List<Job> findJob0Status(int id) throws Exception
    {
        return userRelativeMapper.findJob0Status(id);
    }
    @Override
    public Job findJobById(int id) throws Exception
    {
        return userRelativeMapper.findJobById(id);
    }
    @Override
    public void changeJob1Status(int id) throws Exception
    {
        userRelativeMapper.changeJob1Status(id);
    }
    @Override
    public void changeJob0Status(int id) throws Exception
    {
        userRelativeMapper.changeJob0Status(id);
    }
    @Override
    public void deleteJobById(int id) throws Exception
    {
        userRelativeMapper.deleteJobById(id);
    }
    @Override
    public void updateJob(Job job) throws Exception
    {
        userRelativeMapper.updateJob(job);
    }
    @Override
    public int findCompanyIdByEmail(String string) throws Exception
    {
        return userRelativeMapper.findCompanyIdByEmail(string);
    }
    @Override
    public List<DeliveryActivity> findDeliveryBy0State(int id) throws Exception
    {
        return userRelativeMapper.findDeliveryBy0State(id);
    }
    @Override
    public List<DeliveryActivity> findDeliveryBy1State(int id) throws Exception
    {
        return userRelativeMapper.findDeliveryBy1State(id);
    }
    @Override
    public List<DeliveryActivity> findDeliveryBy2State(int id) throws Exception
    {
        return userRelativeMapper.findDeliveryBy2State(id);
    }
    @Override
    public void setDeliveryRejected(int id) throws Exception
    {
        userRelativeMapper.setDeliveryRejected(id);
    }
    @Override
    public void setDeliveryAccess(int id) throws Exception
    {
        userRelativeMapper.setDeliveryAccess(id);
    }
    @Override
    public void deleteDeliveryById(int id) throws Exception
    {
        userRelativeMapper.deleteDeliveryById(id);
    }
    //public Resume findResumeById(int id) throws Exception;

}
